package e

const (
	// Ok 当前服务内部错误码
	Ok                   = 0 //0值自带
	Error                = 500
	InvalidParams        = 400
	InvalidContentIsNull = 411
	UndefinedCode        = 404
	NoRecord             = 405
	DeSerializeObjErr    = 501
	SerializeObjErr      = 502

	EngineRequestFail     = 1000
	ErrorAuthUserNotLogin = 2000
	PaidServiceHint       = 2001

	ErrorDbSessionBeginFail  = 30000
	ErrorDbSessionCommitFail = 30001
	ErrorDbInsertFail        = 30002
	ErrorDbRowsNoEffect      = 30003
	ErrorDbGetFail           = 30004
	ErrorDbUpdateFail        = 30005
	ErrorDbDeleteFail        = 30006

	ErrorGetAccountFailed            = 5000
	ErrorGetAdminFailed              = 5001
	ErrorGetWhiteFailed              = 5002
	ErrorGetPeerCountFailed          = 5003
	ErrorGetNodeInfoFailed           = 5004
	ErrorSendTransactionFailed       = 5005
	ErrorGetTransactionReceiptFailed = 5006
	ErrorGetNonceFailed              = 5007
	ErrorGetBlockFailed              = 5008
	ErrorGetTransactionNotFound      = 5009
	ErrorGetBlockNotFound            = 5010
	ErrorCalMinerAddress             = 5011
	ErrorGraphqlGetBlockFailed       = 5012
	ErrorGraphqlGetTxFailed          = 5013
	ErrorConnectChainFailed          = 5014

	//合约操作
	DataFormatErr          = 13004
	EndTimeErr             = 13005
	CallContractErr        = 13006
	ContractAddrErr        = 13007
	ChainIDReadErr         = 13008
	CreateSignerErr        = 13009
	ResultEmpty            = 13010
	DeployContractErr      = 13011
	ContractAccountConfErr = 13012
	NotInTrialListErr      = 13015
)
